package com.jayhuang.user_center.common;

import lombok.Getter;

@Getter
public enum ErrorCode {

    SUCCESS(0, "ok", ""),
    PARAMS_ERROR(400, "请求参数错误", ""),
    NULL_ERROR(40001, "请求数据为空", ""),
    NO_LOGIN(40100,"未登录", ""),
    NO_AUTH(40101,"无权限", ""),
    SYSTEM_ERROR(5000, "系统异常","")
    ;



    private Integer code;
    private String message;
    private String description;

    ErrorCode(Integer code, String message, String description) {
        this.code = code;
        this.message = message;
        this.description = description;
    }
}
